package com.xxgc.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-09-27
 */
@Getter
@Setter
  @ApiModel(value = "Users对象", description = "用户")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("用户名")
      private String uname;

      @ApiModelProperty("密码")
      private String upass;

      @ApiModelProperty("盐值")
      private String salt;

      @ApiModelProperty("年龄")
      private Integer age;

      @ApiModelProperty("年级")
      private Integer grade;

      @ApiModelProperty("昵称")
      private String nickName;

      @ApiModelProperty("角色")
      private Integer roleId;

      @ApiModelProperty("已删除")
      private Boolean flag;

      @ApiModelProperty("创建时间")
      private LocalDateTime createTime;

      @ApiModelProperty("最后一次更新")
      private LocalDateTime updateTime;


}
